package com.groupseven.backend.services.impl;

import com.groupseven.backend.domain.Paper.Paper;
import com.groupseven.backend.domain.Patent.Patent;
import com.groupseven.backend.domain.PrizeProduct.PrizeProduct;
import com.groupseven.backend.domain.Program.Program;
import com.groupseven.backend.domain.Program.ProgramApplication;
import com.groupseven.backend.mapper.ProgramAduitMapper;
import com.groupseven.backend.services.ProgramAduitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class ProgramAduitServiceImpl implements ProgramAduitService {
    @Autowired
    ProgramAduitMapper programAduitMapper;
    public List<Program> selectprogramsByApprovalStatus(){
        return programAduitMapper.selectprogramsByApprovalStatus();
    }
    public List<Paper> selectpapersByApprovalStatus(){

        return programAduitMapper.selectpapersByApprovalStatus();
    }
    public List<Patent> selectpatentsByApprovalStatus(){
        return programAduitMapper.selectpatentsByApprovalStatus();
    }
    public List<PrizeProduct> selectprizeproductsByApprovalStatus(){
        return programAduitMapper.selectprizeproductsByApprovalStatus();
    }
    public List<ProgramApplication> selectprogramApplicationByApprovalStatus(){
        return programAduitMapper.selectprogramApplicationByApprovalStatus();
    }


    public List<Program> selectprograms(){
        return programAduitMapper.selectprograms();
    }
    public List<Paper> selectpapers(){
        return programAduitMapper.selectpapers();
    }
    public List<Patent> selectpatents(){
        return programAduitMapper.selectpatents();
    }
    public List<PrizeProduct> selectprizeproducts(){
        return programAduitMapper.selectprizeproducts();
    }
    public List<ProgramApplication> selectprogramApplication(){
        return programAduitMapper.selectprogramApplication();
    }


    public int updateprogramsByApprovalStatus(Program program){
        return programAduitMapper.updateprogramsByApprovalStatus(program);
    }
    public int updatepapersByApprovalStatus(Paper paper){
        return programAduitMapper.updatepapersByApprovalStatus(paper);
    }
    public int updatepatentsByApprovalStatus(Patent patent){
        return programAduitMapper.updatepatentsByApprovalStatus(patent);
    }
    public int updateprizeproductsByApprovalStatus(PrizeProduct prizeProduct){
        return programAduitMapper.updateprizeproductsByApprovalStatus(prizeProduct);
    }
    public int updateprogramApplicationByApprovalStatus(ProgramApplication programApplication){
        return programAduitMapper.updateprogramApplicationByApprovalStatus(programApplication);
    }


    public int updateNOprogramsByApprovalStatus(Program program){
        return programAduitMapper.updateNOprogramsByApprovalStatus(program);
    }
    public int updateNOpapersByApprovalStatus(Paper paper){
        return programAduitMapper.updateNOpapersByApprovalStatus(paper);
    }
    public int updateNOpatentsByApprovalStatus(Patent patent){
        return programAduitMapper.updateNOpatentsByApprovalStatus(patent);
    }
    public int updateNOprizeproductsByApprovalStatus(PrizeProduct prizeProduct){
        return programAduitMapper.updateNOprizeproductsByApprovalStatus(prizeProduct);
    }
    public int updateNOprogramApplicationByApprovalStatus(ProgramApplication programApplication){
        return programAduitMapper.updateNOprogramApplicationByApprovalStatus(programApplication);
    }
}
